package pablo.developer;

import pablo.developer.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.View;
import android.widget.Button;

public class MenuActivity extends Activity{
	
	@SuppressWarnings("unused")
	private Button btUsu;
	@SuppressWarnings("unused")
	private Button btIni;
	@SuppressWarnings("unused")
	private Button btMapa;
	
	
	 public void onCreate(Bundle savedInstanceState) {
	        super.onCreate(savedInstanceState);
	        
	        setContentView(R.layout.menuactivity);
	        SetUI();
	 }
	 public boolean onCreateOptionsMenu(Menu menu) {
		MenuInflater inflater = getMenuInflater();
		inflater.inflate(R.menu.menu, menu);
		return true;
	}
	 public void SetUI(){
		 	btUsu = (Button)findViewById(R.id.boton_Usuario);
	        btIni = (Button) findViewById(R.id.ini_sesion);
	       // btMapa = (Button) findViewById(R.id.mapa);
	 }
	public void nuevoUsuario(View v) {
			 Intent mainIntent = new Intent(MenuActivity.this,NuevoUsuario.class);
			 MenuActivity.this.startActivity(mainIntent);		
	}
	public void inicio(View v)	{
			 Intent mainIntent = new Intent(MenuActivity.this,InicioSesion.class);
			 MenuActivity.this.startActivity(mainIntent);
		}
//	public void mapa(View v){
//			 Intent mainIntent = new Intent(MenuActivity.this,Mapa.class);
//			 MenuActivity.this.startActivity(mainIntent);
//		}
}
